import { AiEnvironment } from "../AiGameAction";
import { DecisionNode } from "../DecisionTree";
import DecisionAttack from "./DecisionAttack";
import DecisionDefense from "./DecisionDefense";
import DecisionDomain from "./DecisionDomain";
import DecisionMainHomeLevelUp from "./DecisionMainHomeLevelUp";
import DecisionResouce from "./DecisionResouce";
import DecisionView from "./DecisionView";

/**
 * 决策根节点
 */
export default class DecisionRoot extends DecisionNode {

    constructor(environment: AiEnvironment) {
        super(environment);
        this.childDecisionNodes.push(new DecisionResouce(environment));
        this.childDecisionNodes.push(new DecisionDefense(environment));
        this.childDecisionNodes.push(new DecisionDomain(environment));
        this.childDecisionNodes.push(new DecisionAttack(environment));
        // this.childDecisionNodes.push(new DecisionNothing(environment));
        this.childDecisionNodes.push(new DecisionView(environment));
        this.childDecisionNodes.push(new DecisionMainHomeLevelUp(environment));
    }

    evaluate(): number {
        return 100;
    }
 
}
